<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td><H2><font color="#336699" class="PageHeader">Changing the Master Host in Grid Engine</font></H2></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td>

<br><br>
<B>Overview</B><BR><BR>1. Stop the daemons on the current master
host<BR>2. Edit $SGE_ROOT/default/common/act_qmaster<BR>3. Run sge5
on the new master host</P>
<P><B>1) Stop all daemons on the current master host</B><BR><BR>Stop
the master and scheduler daemon on the current master by running the
following command: 
</P>
<PRE STYLE="margin-bottom: 0.2in">qconf -ks -km</PRE>
<p></p>
<P><B>2) Edit $SGE_ROOT/default/common/act_qmaster</B><BR><BR>In the
act_qmaster file, the current hostname will need to be replaced with
the new master host's name. This name should be the same as the name
returned by the utility, gethostname. Run the following command on
the new master host: 
</P>
<PRE STYLE="margin-bottom: 0.2in">$SGE_ROOT/utilbin/$ARCH/gethostname</PRE><P>
Put this name in the act_qmaster file in place of the old name.</P>
<P><B>3) Run sge5 on the new master host</B><BR><BR>On the new master
host, run the following script: 
</P>
<PRE STYLE="margin-bottom: 0.2in">$SGE_ROOT/default/common/sge5</PRE><P>
This will start up sge_qmaster and sge_schedd on the new master host.</P>
</table>
